package org.soretro.portfolio.view.videoPlayer.events
{
	import flash.events.Event;
	
	public class VideoPlayerEvent extends Event
	{
		public static const SHOW_VIDEO:String = "show_video";
		public static const HIDE_VIDEO:String = "hide_video";
		
		public var youTubeId:String;
		public var title:String;
		public var desc:String;
		
		public function VideoPlayerEvent( type:String, youTubeId:String="", 
										  title:String="", desc:String="", 
										  bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			
			this.youTubeId = youTubeId;
			this.title = title;
			this.desc = desc;
		}
		
		override public function clone():Event
		{
			return new VideoPlayerEvent(type, title, desc, youTubeId, bubbles, cancelable);
		}
	}
}